<?php

include "connect.php";
$dept_id=$_POST['dept_id'];
$campus_id=$_POST['campus_id'];
$dept_name=$_POST['dept_name'];


$sq=mysql_query("select * From department where dept_id='$dept_id'");
while ($row = mysql_fetch_array($sq)) {
$sql=mysql_query("UPDATE department SET dept_id='$dept_id',campus_id='$campus_id',dept_name='$dept_name'
where dept_id='$dept_id'");



}
header("location:update_department_success.php");
?>